<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/25
 * Time: 8:30
 */

namespace app\api\controller\v1;

use think\Controller;
use app\api\service\Token;

abstract class BaseController extends Controller
{
    protected function checkTokenExisted()
    {
        Token::needExcludePower();
    } 

    protected function checkFatherUser()
    {
        Token::needAdminPower();
    }

    protected function checkSonUser()
    {
        Token::needPrimaryPower();
    }
}